/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package olympicgameslogic;

import java.io.Serializable;
import olympicgameslogic.ClassificationType.MEASUREUNIT;

/**
 *
 * @author Nuno
 */
public class ResultPoints extends Result implements Serializable{
   private float points;

   public ResultPoints() {
   }

   public ResultPoints(MEASUREUNIT unit) {
      super(unit);
   }

   public ResultPoints(float points) {
      this.points = points;
   }

   public ResultPoints(float points, MEASUREUNIT unit) {
      super(unit);
      this.points = points;
   }

   /**
    * @return the points
    */
   public float getPoints() {
      return points;
   }

   /**
    * @param points the points to set
    */
   public void setPoints(float points) {
      this.points = points;
   }

   @Override
   public String toString() {
      return (""+this.points);
   }

   @Override
   public boolean isEqual(Object obj) {
      return (points == ((ResultPoints)obj).getPoints());
   }
   
   
   
}
